//
//  KlineViewController.m
//  Futures
//
//  Created by Cheng on 2017/6/22.
//  Copyright © 2017年 Cheng. All rights reserved.
//

#import "KlineViewController.h"
#import "ChartViewController.h"
#import "KlineModel.h"
#import "KlineView.h"

@interface KlineViewController (){
    KlineView *_klineView;
}

@end

@implementation KlineViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
    [self addklineView];
}



- (void)addklineView
{
    
    _klineView = [[KlineView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, kPageContentViewH)];
//    _klineView.netMgr.delegate = self;
    
    [self.view addSubview:_klineView];
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    [_klineView viewWillApper];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    
    [_klineView viewWillDisapper];
}

@end
